﻿@model Tuple<List<Role>, List<Depart>>
@{
    Layout = null;
}
<div class="layui-form" lay-filter="createForm" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline">
            <input type="text" name="name" value="" maxlength="50" lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">登录名</label>
        <div class="layui-input-inline">
            <input type="text" name="loginName" value="" maxlength="50" lay-verify="required" placeholder="请输入登录名" autocomplete="off" class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline">
            <input type="password" name="pass" value="" maxlength="50" lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label">所属部门</label>
        <div class="layui-input-inline">
            <select name="DepartId">
                <option></option>
                @foreach (Depart item in Model.Item2)
                {
                    <option value="@item.Id">@item.Name</option>
                }
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-block">
            @foreach (var role in Model.Item1)
            {
                <input type="checkbox" name="role" value="@role.Id" title="@role.RoleName" lay-skin="primary">
            }

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-inline">
            <input type="text" maxlength="11" name="Cellphone" value="" placeholder="请输入手机号" autocomplete="off" class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-inline">
            <input type="text" name="Email" value="" placeholder="请输入邮箱" autocomplete="off" class="layui-input layui-form-danger">
        </div>
    </div>


    <div class="layui-form-item center">
        <input type="button" lay-submit="" lay-filter="create" value="确认" class="layui-btn">
    </div>
</div>